package com.netease.research.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Account {
    private Integer id;

    private Integer userId;

    private Integer productId;

    private Date buyTime;

    private Integer quantity;

    private BigDecimal price;

    private BigDecimal totalPrice;

    private String title;

    private String picUrl;

    public Account(Integer id, Integer userId, Integer productId, Date buyTime, Integer quantity, BigDecimal price, BigDecimal totalPrice, String title, String picUrl) {
        this.id = id;
        this.userId = userId;
        this.productId = productId;
        this.buyTime = buyTime;
        this.quantity = quantity;
        this.price = price;
        this.totalPrice = totalPrice;
        this.title = title;
        this.picUrl = picUrl;
    }

    public Account() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Date buyTime) {
        this.buyTime = buyTime;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl == null ? null : picUrl.trim();
    }
}